﻿using System;
using System.Net;
using System.Windows;
using Newtonsoft.Json.Linq;

namespace Sina.Altman.Weibo.SDK.Objects
{
    public class Remind
    {
        public Remind(string json)
            : this(JObject.Parse(json))
        {
        }

        private JObject __jobject;
        public Remind(JObject obj)
        {
            this.__jobject = obj;
        }

        public int Status
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "status"));
            }
        }

        public int Follower
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "follower"));
            }
        }

        public int Cmt
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "cmt"));
            }
        }

        public int Dm
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "dm"));
            }
        }

        public int MentionStatus
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "mention_status"));
            }
        }

        public int MentionCmt
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "mention_cmt"));
            }
        }

        public int Group
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "group"));
            }
        }

        public int PrivateGroup
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "private_group"));
            }
        }

        public int Notice
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "notice"));
            }
        }

        public int Invite
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "invite"));
            }
        }

        public int Badge
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "badge"));
            }
        }

        public int Photo
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "photo"));
            }
        }
    }
}
